package trans.support;

import java.io.IOException;
import java.sql.Connection;

public class DBManager {
	@Deprecated
	public static Connection getConnection() throws IOException{
		
//		Properties propertie = new Properties();
//		propertie.load(DBManager.class.getClassLoader().getResourceAsStream(Constants.SYS_CONFIG_FILE_NAME));
//
//		String host = propertie.getProperty("db.host").trim();
//		String database = propertie.getProperty("db.database").trim();
//		String user = propertie.getProperty("db.user").trim();
//		String password = propertie.getProperty("db.password").trim();
//		String url = "jdbc:mysql://" + host + "/" + database +"?user="+user+"&password="+password+"&useUnicode=true&characterEncoding=utf-8";
//		try {
//			Class.forName("com.mysql.jdbc.Driver");
//			return  DriverManager.getConnection(url);
//		}catch (ClassNotFoundException e) {
//			System.err.println("class not found:" + e.getMessage());
//		} catch (SQLException e) {
//			e.printStackTrace();
//		}
		return null;
	}

}
